package com.sulent.frame.file;

import com.sulent.frame.file.dto.FileVo;

import java.io.File;
import java.util.List;

/**
 * @ClassName FileService
 * @Description: 文件服务器标准接口定义
 * @Author Submerge.
 * @Since 2024/1/18 10:21
 * @Version 1.0
 */
public interface FileServer extends AutoCloseable{
    void uploadFile(File file, String targetPath);
    File downloadFile(String sourceFilePath, String destinationPath);
    List<FileVo> listFiles(String targetPath);
}

